#!/bin/bash
#########################################################################
# File Name: download-rawpage.sh
# Author: Fan Yang
# mail: missdeer@dfordsoft.com
# Created Time: Fri 21 Feb 2014 14:44:48 CST
#########################################################################
dirname=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o cjcp-red.htm http://taobao.cjcp.com.cn/shdd/ssq-hq.html && $dirname/cjcp-parse.sh $dirname/cjcp-red.htm $dirname/cjcp-red.txt
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o cjcp-blue.htm http://taobao.cjcp.com.cn/shdd/ssq-lq.html && $dirname/cjcp-parse.sh $dirname/cjcp-blue.htm $dirname/cjcp-blue.txt
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o 360-red.htm "http://cp.360.cn/shdd/sha/?LotID=220051&ItemID=20343" && $dirname/360-parse.sh $dirname/360-red.htm $dirname/360-red.txt
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o 360-blue.htm "http://cp.360.cn/shdd/sha/?LotID=220051&ItemID=20344" && $dirname/360-parse.sh $dirname/360-blue.htm $dirname/360-blue.txt
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o 5biying-red.htm "http://www.woying.com/Lotterys/Fc/ssqsh?type=2" && $dirname/5biying-parse.sh $dirname/5biying-red.htm $dirname/5biying-red.txt
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o 5biying-blue.htm "http://www.woying.com/Lotterys/Fc/ssqsh" && $dirname/5biying-parse.sh $dirname/5biying-blue.htm $dirname/5biying-blue.txt
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o 78500-red.htm "http://expert.78500.cn/ssq/hqsm/" && $dirname/78500-parse.sh $dirname/78500-red.htm $dirname/78500-red.txt
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o 78500-red3.htm "http://expert.78500.cn/ssq/hqssm/" && $dirname/78500-parse-red3.sh $dirname/78500-red3.htm $dirname/78500-red3.txt
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o 78500-blue.htm "http://expert.78500.cn/ssq/lqsm/" && $dirname/78500-parse.sh $dirname/78500-blue.htm $dirname/78500-blue.txt
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o 78500-blue3.htm "http://expert.78500.cn/ssq/lqssm/" && $dirname/78500-parse-blue3.sh $dirname/78500-blue3.htm $dirname/78500-blue3.txt
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o sohu-red.htm "http://trend.sohu.lecai.com/ssq/redKillTrend.action?onlyBody=true" && $dirname/sohu-parse.sh $dirname/sohu-red.htm $dirname/sohu-red.txt
curl --connect-timeout 10 --retry 10 --retry-delay 5 -L -o sohu-blue.htm "http://trend.sohu.lecai.com/ssq/blueKillTrend.action?onlyBody=true" && $dirname/sohu-parse.sh $dirname/sohu-blue.htm $dirname/sohu-blue.txt
rm -f *.htm
